package com.xhb.campusservices.service.impl;

import com.xhb.campusservices.mapper.OrderManagementMapper;
import com.xhb.campusservices.pojo.orderDto.OrderManagement;
import com.xhb.campusservices.pojo.teskDto.TaskManagement;
import com.xhb.campusservices.service.OrderMService;
import com.xhb.campusservices.service.TaskMService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderMServiceImpl implements OrderMService {

    @Autowired
    private OrderManagementMapper orderM;

    /**
     * 我的跑腿小哥(进行中)
     * @param userId
     * @return
     */
    @Override
    public List<OrderManagement> orderManagementList(Long userId) {
        return orderM.orderManagementList(userId);
    }

    /**
     * 我的跑腿小哥(已完成)
     * @param userId
     * @return
     */
    @Override
    public List<OrderManagement> completeL(Long userId) {
        return orderM.completeL(userId);
    }

    /**
     * 我的雇主(进行中)
     * @param userId
     * @return
     */
    @Override
    public List<OrderManagement> orderMList(Long userId) {
        return orderM.orderMList(userId);
    }

    /**
     * 我的雇主(已完成)
     * @param userId
     * @return
     */
    @Override
    public List<OrderManagement> completeList(Long userId) {
        return orderM.completeList(userId);
    }
}
